package com.example.gulimallware.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 采购信息
 * 
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-27 08:23:54
 */
//@Data
@TableName("wms_purchase")
public class WmsPurchaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 采购单id
	 */
	@TableId
	private Long id;
	/**
	 * 采购人id
	 */
	private Long assigneeId;
	/**
	 * 采购人名
	 */
	private String assigneeName;
	/**
	 * 联系方式
	 */
	private String phone;
	/**
	 * 优先级
	 */
	private Integer priority;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 仓库id
	 */
	private Long wareId;
	/**
	 * 总金额
	 */
	private BigDecimal amount;
	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	/**
	 * 更新日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

	public WmsPurchaseEntity() {
	}

	public WmsPurchaseEntity(Long id, Long assigneeId, String assigneeName, String phone, Integer priority, Integer status, Long wareId, BigDecimal amount, Date createTime, Date updateTime) {
		this.id = id;
		this.assigneeId = assigneeId;
		this.assigneeName = assigneeName;
		this.phone = phone;
		this.priority = priority;
		this.status = status;
		this.wareId = wareId;
		this.amount = amount;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	/**
	 * 获取
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取
	 * @return assigneeId
	 */
	public Long getAssigneeId() {
		return assigneeId;
	}

	/**
	 * 设置
	 * @param assigneeId
	 */
	public void setAssigneeId(Long assigneeId) {
		this.assigneeId = assigneeId;
	}

	/**
	 * 获取
	 * @return assigneeName
	 */
	public String getAssigneeName() {
		return assigneeName;
	}

	/**
	 * 设置
	 * @param assigneeName
	 */
	public void setAssigneeName(String assigneeName) {
		this.assigneeName = assigneeName;
	}

	/**
	 * 获取
	 * @return phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * 设置
	 * @param phone
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * 获取
	 * @return priority
	 */
	public Integer getPriority() {
		return priority;
	}

	/**
	 * 设置
	 * @param priority
	 */
	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	/**
	 * 获取
	 * @return status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置
	 * @param status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取
	 * @return wareId
	 */
	public Long getWareId() {
		return wareId;
	}

	/**
	 * 设置
	 * @param wareId
	 */
	public void setWareId(Long wareId) {
		this.wareId = wareId;
	}

	/**
	 * 获取
	 * @return amount
	 */
	public BigDecimal getAmount() {
		return amount;
	}

	/**
	 * 设置
	 * @param amount
	 */
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	/**
	 * 获取
	 * @return createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置
	 * @param createTime
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取
	 * @return updateTime
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * 设置
	 * @param updateTime
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String toString() {
		return "WmsPurchaseEntity{id = " + id + ", assigneeId = " + assigneeId + ", assigneeName = " + assigneeName + ", phone = " + phone + ", priority = " + priority + ", status = " + status + ", wareId = " + wareId + ", amount = " + amount + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
	}
}
